{% block sw_inheritance_switch %}
<div
    class="sw-inheritance-switch"
    :class="{
        'sw-inheritance-switch--disabled': disabled,
        'sw-inheritance-switch--is-inherited': isInherited,
        'sw-inheritance-switch--is-not-inherited': !isInherited,
    }"
>
    {% block sw_inheritance_switch_inherit_icon %}
    <mt-icon
        v-if="isInherited"
        key="inherit-icon"
        v-tooltip="{ message: $tc('global.sw-field.tooltipRemoveInheritance'), disabled: disabled }"
        name="regular-link-horizontal"
        size="16px"
        @click="onClickRemoveInheritance"
    />
    {% endblock %}
    {% block sw_inheritance_switch_uninherit_icon %}
    <mt-icon
        v-else
        key="uninherit-icon"
        v-tooltip="{ message: $tc('global.sw-field.tooltipRestoreInheritance'), disabled: disabled }"
        :class="unInheritClasses"
        name="regular-link-horizontal-slash"
        size="16px"
        @click="onClickRestoreInheritance"
    />
    {% endblock %}
</div>
{% endblock %}
